package com.ucombuy.search.mysql.dto;

import com.ucombuy.search.mysql.constant.OpType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by yaosheng on 2021/4/4.
 * MySQL数据表模版
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TableTemplate {

    private String tableName;
    private String level;

    private Map<OpType, List<String>> opTypeFieldSetMap = new HashMap<> ();

    /**
     * 字段索引 -> 字段名
     * pos节点，全量索引与增量索引切割节点
     */
    private Map<Integer,String> posMap = new HashMap<> ();
}
